// 账单类型名称【1租约2定金3退款4退订5押金6仪表7记账8其他费用】
export const BILLTYPE = {
	// billTypeName
	//租约
	LEASE: 1,
	//定金
	DEPOSIT: 2,
	//退款
	REFUND: 3,
	//退订
	UNREG: 4,
	//押金
	SICHERHEIT: 5,
	//仪表
	METER: 6,
	//记账
	CHARGEUP: 7,
	//其他费用
	OTHERCHARGES: 8
}
// 	业务类型【1业主2租客3日租4民宿（订单）5房屋6供应商】
export const BUSINESSTYPE = {
	//业主
	PROPRIETOR: 1,
	//租客
	LESSEES: 2,
	//日租
	DAILYRENTAL: 3,
	//民宿
	HOMESTAY: 4,
	//房屋
	HOUSES: 5,
	//供应商
	SUPPLIER: 6
}
export const TYPE_CONFIG = {
	// 账单类型
	[BILLTYPE.LEASE]: {
		name: '租约'
	},
	[BILLTYPE.DEPOSIT]: {
		name: '定金'
	},
	[BILLTYPE.REFUND]: {
		name: '退款'
	},
	[BILLTYPE.UNREG]: {
		name: '退订'
	},
	[BILLTYPE.SICHERHEIT]: {
		name: '押金'
	},
	[BILLTYPE.METER]: {
		name: '仪表'
	},
	[BILLTYPE.CHARGEUP]: {
		name: '记账'
	},
	[BILLTYPE.OTHERCHARGES]: {
		name: '其他费用'
	}
}
export const BUSINESS_TYPE_CONFIG = {
	// 业务类型
	[BUSINESSTYPE.PROPRIETOR]: {
		name: '业主'
	},
	[BUSINESSTYPE.LESSEES]: {
		name: '租客'
	},
	[BUSINESSTYPE.DAILYRENTAL]: {
		name: '日租'
	},
	[BUSINESSTYPE.HOMESTAY]: {
		name: '民宿'
	},
	[BUSINESSTYPE.HOUSES]: {
		name: '房屋'
	},
	[BUSINESSTYPE.SUPPLIER]: {
		name: '供应商'
	}
}

// 合同类型【1-纸质,2-电子】
export const CONTRACTMEDIUMSTYPE = {
	//纸质
	PAPER: 1,
	//电子
	ERP: 2
}
export const CONTRACT_MEDIUMS_TYPE_CONFIG = {
	// 业务类型
	[CONTRACTMEDIUMSTYPE.PAPER]: {
		name: '纸质'
	},
	[CONTRACTMEDIUMSTYPE.ERP]: {
		name: '电子'
	}
}
// 签约类型【1-新签,2-续签,3-转租,4-换房】
export const SIGNTYPE = {
	//新签
	NEWSIGNING: 1,
	//续签
	RENEW: 2,
	//转租
	SUBLET: 3,
	//换房
	ROOMCHANGE: 4
}
export const SIGN_TYPE_CONFIG = {
	// 业务类型
	[SIGNTYPE.NEWSIGNING]: {
		name: '新签'
	},
	[SIGNTYPE.RENEW]: {
		name: '续签'
	},
	[SIGNTYPE.SUBLET]: {
		name: '转租'
	},
	[SIGNTYPE.ROOMCHANGE]: {
		name: '换房'
	}
}
// 	支付方式【1微信2支付宝3银联4美团5携程】
export const PAYMENTTYPE = {
	//微信
	WECHAT: 1,
	//支付宝
	ALIPAY: 2,
	//银联
	UNIONPAY: 3,
	//美团
	MEITUAN: 4,
	// 携程
	CTRIP: 5
}
export const PAYMENT_TYPE_CONFIG = {
	// 业务类型
	[PAYMENTTYPE.WECHAT]: {
		name: '微信'
	},
	[PAYMENTTYPE.ALIPAY]: {
		name: '支付宝'
	},
	[PAYMENTTYPE.UNIONPAY]: {
		name: '美团'
	},
	[PAYMENTTYPE.CTRIP]: {
		name: '携程'
	}
}
// 	合同状态【1-即将生效 2-租约中 3-即将到期 4-已到期 5-已解约 6-已作废 8-续约】
export const CONTRACTSTATUS = {
	//即将生效
	WILLTAKEEFFECT: 1,
	//租约中
	INTHELEASE: 2,
	//即将到期
	ABOUTTOEXPIRE: 3,
	//已到期
	HAVEEXPIRED: 4,
	// 已解约
	CANCELLED: 5,
	//已作废
	CKVSDOZEE: 6,
	// 续约
	CONTRACTEXTENSION: 7
}
export const CONTRACTS_TATUS_CONFIG = {
	// 业务类型
	[CONTRACTSTATUS.WILLTAKEEFFECT]: {
		name: '即将生效'
	},
	[CONTRACTSTATUS.INTHELEASE]: {
		name: '租约中'
	},
	[CONTRACTSTATUS.ABOUTTOEXPIRE]: {
		name: '即将到期'
	},
	[CONTRACTSTATUS.CANCELLED]: {
		name: '已到期'
	},
	[CONTRACTSTATUS.HAVEEXPIRED]: {
		name: '已到期'
	},
	[CONTRACTSTATUS.CKVSDOZEE]: {
		name: '已作废'
	},
	[CONTRACTSTATUS.CONTRACTEXTENSION]: {
		name: '续约'
	}
}
// 房源状态【11空置 20预定 30已租 40配置 50锁房 60无效 71关闭-业主退房 72关闭-业主违约】
export const HOUSESTATUS = {
	NONOCCUPATION: 11,
	RESERVE: 20,
	ALREADYTAKEN: 30,
	CONFIGURATION: 40,
	LOCKROOM: 50,
	// NULLANDVOID: 60,
	THEOWNERCHECKOUT: 71,
	DEFAULTOFEMPLOYER: 72
}
export const HOUSE_STATUS_CONFIG = {
	// 业务类型
	[HOUSESTATUS.NONOCCUPATION]: {
		name: '空置',
		color: 'green'
	},
	[HOUSESTATUS.RESERVE]: {
		name: '预定',
		color: 'bule'
	},
	[HOUSESTATUS.ALREADYTAKEN]: {
		name: '已租',
		color: 'red'
	},
	[HOUSESTATUS.CONFIGURATION]: {
		name: '配置',
		color: 'gray'
	},
	[HOUSESTATUS.LOCKROOM]: {
		name: '锁房',
		color: 'gray'
	},
	// [HOUSESTATUS.NULLANDVOID]: {
	// 	name: '无效',
	// 	color: 'gray'
	// },
	[HOUSESTATUS.THEOWNERCHECKOUT]: {
		name: '业主退房',
		color: 'gray'
	},
	[HOUSESTATUS.DEFAULTOFEMPLOYER]: {
		name: '业主违约',
		color: 'gray'
	}
}

// 定金状态【1待支付2待签约3已签约4已退定5已作废6待确认7预定失败】
export const BOOKSTATUS = {
	UNPAID: 1,
	TOSIGNUP: 2,
	HASSIGNEDACONTRACT: 3,
	HASBEENTOUNSUBSCRIBE: 4,
	HAVEBEENVOIDED: 5,
	TOBECONFIRMED: 6,
	DUETOFAILURE: 7
}
export const BOOK_STATUS_CONFIG = {
	// 业务类型
	[BOOKSTATUS.UNPAID]: {
		name: '待支付',
		color: 'green'
	},
	[BOOKSTATUS.TOSIGNUP]: {
		name: '待签约',
		color: 'bule'
	},
	[BOOKSTATUS.HASSIGNEDACONTRACT]: {
		name: '已签约',
		color: 'red'
	},
	[BOOKSTATUS.HASBEENTOUNSUBSCRIBE]: {
		name: '已退定',
		color: 'gray'
	},
	[BOOKSTATUS.HAVEBEENVOIDED]: {
		name: '已作废',
		color: 'gray'
	},
	[BOOKSTATUS.TOBECONFIRMED]: {
		name: '待确认',
		color: 'gray'
	},
	[BOOKSTATUS.DUETOFAILURE]: {
		name: '预定失败',
		color: 'gray'
	}
}
// 证件类型：1.身份证，2.护照，3.港澳通行证，4.台湾同胞证
export const CERTIFICATETYPE = {
	IDENTITYCARD: 1,
	PASSPORT: 2,
	TRAFFICPERMIT: 3,
	COMPATRIOTSCERTIFICATE: 4
}
export const CERTIFICATE_TYPE_CONFIG = {
	// 业务类型
	[CERTIFICATETYPE.IDENTITYCARD]: {
		name: '身份证'
	},
	[CERTIFICATETYPE.PASSPORT]: {
		name: '护照'
	},
	[CERTIFICATETYPE.TRAFFICPERMIT]: {
		name: '港澳通行证'
	},
	[CERTIFICATETYPE.COMPATRIOTSCERTIFICATE]: {
		name: '台湾同胞证'
	}
}

// 	租期年限【单位月】【1、3、6、12】【1、1个月，2、3个月，3、半年，4、1年】
export const CONTRACTMONTH = {
	ONEMONTH: 1,
	TRIMESTER: 3,
	HALFAYEAR: 6,
	ONEYEAR: 12
}
export const CONTRACT_MONTH_CONFIG = {
	// 业务类型
	[CONTRACTMONTH.ONEMONTH]: {
		name: '1个月'
	},
	[CONTRACTMONTH.TRIMESTER]: {
		name: '3个月'
	},
	[CONTRACTMONTH.HALFAYEAR]: {
		name: '6个月'
	},
	[CONTRACTMONTH.ONEYEAR]: {
		name: '1年'
	}
}

// 支付类型【1银行卡2支付宝3微信】
export const PAYTYPE = {
	BANKCARD: 1, //银行卡
	ALIPAY: 2, //支付宝
	WECHAT: 3 //微信
}
// 动作（1：收；2：付；3：免收；4:免付）
export const ACTION = {
	PROCEEDS: 1, //收
	PAYMENT: 2, //付
	WAIVEDIN: 3, //免收
	FREEOF: 4 //免付
}
export const PAY_TYPE_CONFIG = {
	// 支付类型
	[PAYTYPE.BANKCARD]: {
		name: '银行卡'
	},
	[PAYTYPE.ALIPAY]: {
		name: '支付宝'
	},
	[PAYTYPE.WECHAT]: {
		name: '微信'
	}
}

export const ACTION_CONFIG = {
	// 支付类型
	[ACTION.PROCEEDS]: {
		name: '收'
	},
	[ACTION.PAYMENT]: {
		name: '付'
	},
	[ACTION.WAIVEDIN]: {
		name: '免收'
	},
	[ACTION.FREEOF]: {
		name: '免付'
	}
}
